//
//  BDLocationSrver.h
//  BadBoy
//
//  Created by wen on 2017/3/29.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import <AMapLocationKit/AMapLocationKit.h>
#import <MJExtension/MJExtension.h>
#import "BDCityInfo.h"
@interface BDLocationModel : AMapLocationReGeocode

- (void)saveLocationInfo;
+ (instancetype)getLocationInfo;

@property (nonatomic, assign) double longitude;
@property (nonatomic, assign) double latitude;

@end

@interface BDLocationServer : NSObject

+ (instancetype)sharedServer;
+ (BOOL)whetherOpenLocationServer;
+ (NSString *)getCurrentCity_id;
+ (NSString *)getCityIdWithCityName:(NSString *)cityName cityType:(BDCityType)cityType;

+ (CLLocationCoordinate2D)getLastCoordinate;

- (void)locate;
- (void)locatonWithCityName:(NSString *)cityName;
@end
